package com.bw.util;

import org.aspectj.lang.ProceedingJoinPoint;

/***************************
 FileAction:

 CreateTime:2022-08-25 9:24
 Author:Aaking-aline
 ****************************/
public class LogUtil {
	public Object printLog(ProceedingJoinPoint pjp){
		Object retObj = null;

		try {
			System.out.println("2022-08-25 09:28 被张某进行了方法");
			Object[] args = pjp.getArgs();
			retObj = pjp.proceed(args);

			System.out.println("2022-08-25 09:34 张某访问完毕");
		}catch (Throwable throwable){
			System.out.println("发生异常后的通知");
		}finally {
			System.out.println("业务代码执行完后的 通知");
		}

		return retObj;
	}
}
